package com.xuecheng.content.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xuecheng.content.model.dto.SaveTeachPlanDto;
import com.xuecheng.content.model.dto.TeachPlanDto;
import com.xuecheng.content.model.po.Teachplan;

import java.util.List;

/**
 * <p>
 * 课程计划 服务类
 * </p>
 *
 * @author jiangzhongxun
 * @since 2023-03-05
 */
public interface TeachplanService extends IService<Teachplan> {

    /**
     * 查询课程计划树形结构信息
     *
     * @param courseId 课程id
     * @return {@link List}<{@link TeachPlanDto}>
     */
    List<TeachPlanDto> findTeachPlanTree(Long courseId);

    /**
     * 新增/保存/修改课程计划
     *
     * @param saveTeachPlanDto 保存、修改课程计划 DTO
     */
    void saveTeachPlan(SaveTeachPlanDto saveTeachPlanDto);

}
